package com.it.zhangjun.design.pattern.chainOfResponsibility;

/**
 * @className: DiscountFilter
 * @description: 打折接口
 * @author: z00018123
 * @date: 2021/4/29
 **/
public abstract class DiscountFilter {

    /**
     * 下一个责任链成员
     */
    protected DiscountFilter nextDiscountFilter;

    /**
     * 计算优惠价格
     *
     * @param price
     * @return
     */
    protected abstract int calculatePrice(int price);
}
